package com.myapp.struts.menu;

public class MenuFactory {

    public String makeMenu(String CountryCode, String type, String format, String fileLoc) {
        String fileName = "";
        if (CountryCode.equals(Constants.US) && type.equals(Constants.DINNER) && format.equals(Constants.HTML)) {
            USDinnerHTML USDinHTMLObj = USDinnerHTML.getSingletonObject();
            fileName = USDinHTMLObj.getUSDinnerHTML(fileLoc);
        } else if (CountryCode.equals(Constants.US) && type.equals(Constants.DINNER) && format.equals(Constants.TEXT)) {
            USDinnerText USDinTextObj = USDinnerText.getSingletonObject();
            fileName = USDinTextObj.getUSDinnerText(fileLoc);
        } else if (CountryCode.equals(Constants.US) && type.equals(Constants.DINNER) && format.equals(Constants.XML)) {
            USDinnerXML USDinXMLObj = USDinnerXML.getSingletonObject();
            fileName = USDinXMLObj.getUSDinnerXML(fileLoc);
        } else if (CountryCode.equals(Constants.US) && type.equals(Constants.EVENING_ONLY) && format.equals(Constants.XML)) {
            USEveningXML USEvenXMLObj = USEveningXML.getSingletonObject();
            fileName = USEvenXMLObj.getUSEveningXML(fileLoc);
        } else if (CountryCode.equals(Constants.US) && type.equals(Constants.EVENING_ONLY) && format.equals(Constants.HTML)) {
            USEveningHTML USEvenHTMLObj = USEveningHTML.getSingletonObject();
            fileName = USEvenHTMLObj.getUSEveningHTML(fileLoc);
        } else if (CountryCode.equals(Constants.US) && type.equals(Constants.EVENING_ONLY) && format.equals(Constants.TEXT)) {
            USEveningText USEvenTextObj = USEveningText.getSingletonObject();
            fileName = USEvenTextObj.getUSEveningText(fileLoc);
        } else if (CountryCode.equals(Constants.US) && type.equals(Constants.ALL_DAY) && format.equals(Constants.TEXT)) {
            USAllDayText USAllDayTxtObj = USAllDayText.getSingletonObject();
            fileName = USAllDayTxtObj.getUSAllDayText(fileLoc);
        } else if (CountryCode.equals(Constants.US) && type.equals(Constants.ALL_DAY) && format.equals(Constants.XML)) {
            USAllDayXML USAllDayXmlObj = USAllDayXML.getSingletonObject();
            fileName = USAllDayXmlObj.getUSAllDayXML(fileLoc);
        } else if (CountryCode.equals(Constants.US) && type.equals(Constants.ALL_DAY) && format.equals(Constants.HTML)) {
            USAllDayHTML USAllDayHtmlObj = USAllDayHTML.getSingletonObject();
            fileName = USAllDayHtmlObj.getUSAllDayHTML(fileLoc);
        } else if (CountryCode.equals(Constants.GREAT_BRITAN) && type.equals(Constants.DINNER) && format.equals(Constants.TEXT)) {
            GBDinnerText GBDinnerTxtObj = GBDinnerText.getSingletonObject();
            fileName = GBDinnerTxtObj.getGBDinnerText(fileLoc);
        } else if (CountryCode.equals(Constants.GREAT_BRITAN) && type.equals(Constants.DINNER) && format.equals(Constants.XML)) {
            GBDinnerXML GBDinnerXmlObj = GBDinnerXML.getSingletonObject();
            fileName = GBDinnerXmlObj.getGBDinnerXML(fileLoc);
        } else if (CountryCode.equals(Constants.GREAT_BRITAN) && type.equals(Constants.EVENING_ONLY) && format.equals(Constants.XML)) {
            GBEveningXML GBEveningXmlObj = GBEveningXML.getSingletonObject();
            fileName = GBEveningXmlObj.getGBEveningXML(fileLoc);
        } else if (CountryCode.equals(Constants.GREAT_BRITAN) && type.equals(Constants.EVENING_ONLY) && format.equals(Constants.HTML)) {
            GBEveningHTML GBEveningHtmlObj = GBEveningHTML.getSingletonObject();
            fileName = GBEveningHtmlObj.getGBEveningHTML(fileLoc);
        } else if (CountryCode.equals(Constants.GREAT_BRITAN) && type.equals(Constants.EVENING_ONLY) && format.equals(Constants.TEXT)) {
            GBEveningText GBEveningTextObj = GBEveningText.getSingletonObject();
            fileName = GBEveningTextObj.getGBEveningText(fileLoc);
        } else if (CountryCode.equals(Constants.GREAT_BRITAN) && type.equals(Constants.ALL_DAY) && format.equals(Constants.TEXT)) {
            GBAllDayText GBAllDayTxtObj = GBAllDayText.getSingletonObject();
            fileName = GBAllDayTxtObj.getGBAllDayText(fileLoc);
        } else if (CountryCode.equals(Constants.GREAT_BRITAN) && type.equals(Constants.ALL_DAY) && format.equals(Constants.XML)) {
            GBAllDayXML GBAllDayXmlObj = GBAllDayXML.getSingletonObject();
            fileName = GBAllDayXmlObj.getGBAllDayXML(fileLoc);
        } else if (CountryCode.equals(Constants.GREAT_BRITAN) && type.equals(Constants.ALL_DAY) && format.equals(Constants.HTML)) {
            GBAllDayHTML GBAllDayHtmlObj = GBAllDayHTML.getSingletonObject();
            fileName = GBAllDayHtmlObj.getGBAllDayHTML(fileLoc);
        } else {
            GBDinnerHTML GBDinerHtmlObj = GBDinnerHTML.getSingletonObject();
            fileName = GBDinerHtmlObj.getGBDinnerHTML(fileLoc);
        }
        return fileName;
    }
}
